var assert = require('assert');

describe('array', function () {
    let arr = []
    before(function() {
        console.log('before 02 ----')
    });

    after(function() {
        console.log('after 02 ----')
    });

    beforeEach(() => {
        console.log('beforeEach 02 ----')
        arr = [1, 2, 3]
    });

    afterEach(() => {
        console.log('afterEach 02 ----')
        arr = [1, 2, 3]
    });

    it('push', function () {
        assert.deepStrictEqual(arr.push(4), 4)
        assert.deepStrictEqual(arr, [1, 2, 3, 4])
    })

    it('pop', function () {
        assert.deepStrictEqual(arr.pop(), 3)
        assert.deepStrictEqual(arr, [1, 2])
    })

})


